package com.mdd.common.enums.auth;

/**
 * 授权状态
 * @Description
 * @Author 幻速
 * @Date 2023/11/16 11:11
 **/
public enum FundAuthFreezeStatus {
    //授权状态：0、预授权待创建 1、预授权订单创建 2、授权冻结成功 3、预授权订单关闭  4、预授权订单解冻 5、预授权明细撤销 6、预授权订单创建失败
    FUND_AUTH_FREEZE_TO_CREATED(0,"资金预授权订单待创建"),
    FUND_AUTH_FREEZE_INIT(1,"资金预授权订单创建"),
    FUND_AUTH_FREEZE(2,"资金预授权冻结成功/到达超时解冻时间触发自动解冻通知"),
    FUND_AUTH_FREEZE_CLOSED(3,"资金预授权订单关闭"),
    FUND_AUTH_UNFREEZE(4,"资金授权订单解冻"),
    FUND_AUTH_OPERATION_CANCEL(5,"资金预授权明细撤销"),
    FUND_AUTH_FREEZE_FAIL(6,"资金预授权订单创建失败");
    //授权状态：0、待授权 1、授权成功 2、授权失败 3、授权取消
    private final int code;
    private final String msg;
    FundAuthFreezeStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
